<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html lang="en" ng-app="CDash">
  <head ng-controller="HeadController">
    <meta charset="UTF-8">
    <meta name="robots" content="noindex,nofollow" />
    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="stylesheet" type="text/css" ng-href="build/css/{{cssfile}}_@@version.css" />
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="css/jquery-ui-1.10.4.css" />
    <script src="js/CDash_@@version.min.js"></script>
    <title ng-bind="title">CDash</title>
  </head>

  <body bgcolor="#ffffff" ng-controller="QueryTestsController">
-->
    <div ng-if="cdash.requirelogin == 1" ng-include="'login.php'"></div>

    <ng-include ng-if="cdash.requirelogin != 1" src="cdash.header || 'build/views/partials/header_@@version.html'"></ng-include>
    <br/>

    <div  id="main_content" ng-if="cdash.requirelogin != 1 && !loading">
      <h3 id="numtests">Query {{cdash.dashboard.projectname}} Tests: {{cdash.builds.length}} matches</h3>

<!-- Filters -->
<div id="labelshowfilters">
  <a id="label_showfilters" ng-click="showfilters_toggle()">
    <span ng-show="showfilters == 0">Show Filters</span>
    <span ng-show="showfilters != 0">Hide Filters</span>
  </a>
  <a ng-if="::cdash.filterontestoutput"
     ng-click="toggleShowMatchingOutput()">
    <span ng-show="!cdash.showmatchingoutput">Show Matching Output</span>
    <span ng-show="cdash.showmatchingoutput">Hide Matching Output</span>
  </a>
</div>
<ng-include src="'build/views/partials/filterdataTemplate_@@version.html'"></ng-include>

<!-- Hide a div for javascript to know if time status is on -->
<div ng-if="cdash.project.showtesttime == 1" id="showtesttimediv" style="display:none"></div>

<!-- Results -->
<table id="queryTestsTable" cellspacing="0" cellpadding="3" class="tabb test-table">
<thead>
  <tr class="table-heading1">
    <th class="header"
        ng-click="updateOrderByFields('site', $event)">
      Site
      <span class="glyphicon" ng-class="orderByFields.indexOf('-site') != -1 ? 'glyphicon-chevron-down' : (orderByFields.indexOf('site') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
    </th>

    <th class="header"
        ng-click="updateOrderByFields('buildName', $event)">
      Build Name
      <span class="glyphicon" ng-class="orderByFields.indexOf('-buildName') != -1 ? 'glyphicon-chevron-down' : (orderByFields.indexOf('buildName') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
    </th>

    <th class="header"
        ng-click="updateOrderByFields('testname', $event)">
      Test Name
      <span class="glyphicon" ng-class="orderByFields.indexOf('-testname') != -1 ? 'glyphicon-chevron-down' : (orderByFields.indexOf('testname') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
    </th>

    <th class="header"
        ng-click="updateOrderByFields('status', $event)">
      Status
      <span class="glyphicon" ng-class="orderByFields.indexOf('-status') != -1 ? 'glyphicon-chevron-down' : (orderByFields.indexOf('status') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
    </th>

    <th class="header"
        ng-if="cdash.project.showtesttime == 1"
        ng-click="updateOrderByFields('timestatus', $event)">
      Time Status
      <span class="glyphicon" ng-class="orderByFields.indexOf('-timestatus') != -1 ? 'glyphicon-chevron-down' : (orderByFields.indexOf('timestatus') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
    </th>

    <th class="header"
        ng-click="updateOrderByFields('time', $event)">
      Time
      <span class="glyphicon" ng-class="orderByFields.indexOf('-time') != -1 ? 'glyphicon-chevron-down' : (orderByFields.indexOf('time') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
    </th>

    <th class="header"
        ng-if="::cdash.hasprocessors"
        ng-click="updateOrderByFields('procTime', $event)"
        tooltip-popup-delay="1500"
        tooltip-append-to-body="true"
        uib-tooltip="Elapsed time * number of processors">
      Proc Time
      <span class="glyphicon" ng-class="orderByFields.indexOf('-procTime') != -1 ? 'glyphicon-chevron-down' : (orderByFields.indexOf('procTime') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
    </th>

    <th class="header"
        ng-click="updateOrderByFields('details', $event)">
      Details
      <span class="glyphicon" ng-class="orderByFields.indexOf('-details') != -1 ? 'glyphicon-chevron-down' : (orderByFields.indexOf('details') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
    </th>

    <th class="header"
        ng-click="updateOrderByFields('buildstarttime', $event)">
      Build Time
      <span class="glyphicon" ng-class="orderByFields.indexOf('-buildstarttime') != -1 ? 'glyphicon-chevron-down' : (orderByFields.indexOf('buildstarttime') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
    </th>

    <th class="header"
        ng-if="::cdash.hasprocessors"
        ng-click="updateOrderByFields('nprocs', $event)">
      Processors
      <span class="glyphicon" ng-class="orderByFields.indexOf('-nprocs') != -1 ? 'glyphicon-chevron-down' : (orderByFields.indexOf('nprocs') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
    </th>

    <th ng-repeat="measurement in ::cdash.extrameasurements track by $index"
        class="header"
        ng-click="sortByExtraMeasurement($index, $event)">
      {{::measurement}}
      <span class="glyphicon" ng-class="orderByFields.indexOf('-measurements[' + $index + ']') != -1 ? 'glyphicon-chevron-down' : (orderByFields.indexOf('measurements[' + $index + ']') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
    </th>

    <th ng-if="::cdash.filterontestoutput"
        ng-show="cdash.showmatchingoutput">
      Matching Output
    </th>
  </tr>
</thead>

  <tr ng-repeat="build in pagination.filteredBuilds"
      ng-class-odd="'odd'"
      ng-class-even="'even'">
    <td>
      <a href="{{build.siteLink}}">{{build.site}}</a>
    </td>

    <td>
      <a href="{{build.buildSummaryLink}}">{{build.buildName}}</a>
    </td>

    <td>
      {{build.testname}}
    </td>

    <td align="center" ng-class="build.statusclass">
      <a href="{{build.testDetailsLink}}">{{build.status}}</a>
    </td>

    <td ng-if="cdash.project.showtesttime == 1" align="center" ng-class="build.timestatusclass">
      <a href="{{build.testDetailsLink}}">{{build.timestatus}}</a>
    </td>

    <td>
      {{build.prettyTime}}
    </td>

    <td ng-if="::cdash.hasprocessors">
      {{build.prettyProcTime}}
    </td>

    <td>
      {{build.details}}
    </td>

    <td>
      {{build.buildstarttime}}
    </td>

    <td ng-if="::cdash.hasprocessors">
      {{build.nprocs}}
    </td>

    <td ng-repeat="measurement in build.measurements track by $index">
      {{measurement}}
    </td>

    <td ng-if="::cdash.filterontestoutput"
        ng-show="cdash.showmatchingoutput"
        class="animate-show">
      <pre ng-bind-html="build.matchingoutput | ctestNonXmlCharEscape | terminalColors | trustAsHtml"></pre>
    </td>
  </tr>

</table>
  <div ng-if="cdash.builds.length > 25">
    <uib-pagination
      ng-model="pagination.currentPage"
      total-items="cdash.builds.length"
      max-size="pagination.maxSize"
      items-per-page="pagination.numPerPage"
      ng-change="pageChanged()"
      boundary-links="true">
    </uib-pagination>

    <div>
      <label>Items per page</label>
      <select ng-model="pagination.numPerPage" convert-to-number ng-change="numTestsPerPageChanged()">
        <option value="25">25</option>
        <option value="50">50</option>
        <option value="100">100</option>
        <option value="-1">All</option>
      </select>
    </div>
  </div>

<br/>

    <!-- FOOTER -->
    <br/>
    <ng-include ng-if="cdash.requirelogin != 1" src="cdash.footer || 'build/views/partials/footer_@@version.html'"></ng-include>
      <!--
  </body>
</html> -->
